<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ page import="cn.biwysh.exam.entity.User"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    int roleid=1;
    User vUser = null;
    if (session.getAttribute("user") != null) {
    	vUser = (User) session.getAttribute("user");
    	if (vUser != null) {
    		roleid=vUser.getRight();
    	}
    }
String jspName="";
if (request.getParameter("jspName") != null) {
	jspName = request.getParameter("jspName") ;
}
%>
<style type="text/css">
*{
padding:0px;
margin:0px;
}
<!-- 

.nav{
  list-style-type:none;
  padding-top:11px;
}
.nav li{
  float:left;
  width:140px;
}
.nav div{
  height:17px;
}
.lnav{
  list-style-type:none;
}
.lnav li{
 width:173px;
 padding-bottom:10px;
}
.lnav div{
 width:173px;
 height:27px;
}
.clear{
  clear: both;
}
-->
</style>
<script type="text/javascript">

</script>
<body>
<div style="padding-top:5px;">
    <ul class="lnav">
     <%if(roleid==0){%>
	    <% if(jspName.equals("tjModuleOpt")){%>
	       <li><div style="background-image: url(img/gl/tjwt.jpg);"></div></li>
	    <%}else{%>
	       <li><div style="background-image: url(img/gl/tjwta.jpg);cursor:pointer;" onclick="window.location.href = '<%=basePath %>gl/wtgl.do?page=tjzt'"></div></li>
	    <%}%>
	    <% if(jspName.equals("listModuleOpt")){%>
	       <li><div style="background-image: url(img/gl/wtlist.jpg);"></div></li>
	    <%}else{%>
	       <li><div style="background-image: url(img/gl/wtlista.jpg);cursor:pointer;" onclick="window.location.href = '<%=basePath %>gl/wtgl.do?page=list'"></div></li>
	    <%}%>  
	    <% if(jspName.equals("shModuleOpt")){%>
	       <li><div style="background-image: url(img/gl/shwt.jpg);"></div></li>
	    <%}else{%>
	       <li><div style="background-image: url(img/gl/shwta.jpg);cursor:pointer;" onclick="window.location.href = '<%=basePath %>gl/wtgl.do?page=sh'"></div></li>
	    <%}%> 
    <%}else{%>
    	 <% if(jspName.equals("tjModuleOpt")){%>
           <li><div style="background-image: url(img/gl/tjwt.jpg);"></div></li>
         <%}else{%>
           <li><div style="background-image: url(img/gl/tjwta.jpg);cursor:pointer;" onclick="window.location.href = '<%=basePath %>gl/wtgl.do?page=tjzt'"></div></li>
	     <%}%>
	     <% if(jspName.equals("listModuleOpt")){%>
	       <li><div style="background-image: url(img/gl/wtlist.jpg);"></div></li>
	     <%}else{%>
	       <li><div style="background-image: url(img/gl/wtlista.jpg);cursor:pointer;" onclick="window.location.href = '<%=basePath %>gl/wtgl.do?page=list'"></div></li>
	     <%}%>  
    <% } %> 
    </ul>
</div>
</body>